var ec_left1 = echarts.init(document.getElementById("left1"),"dark");
var option_left1 = {
    title: {
        text: '学生宿舍人数（人/宿舍）',
        textStyle:{

        },
        left: 'left',
    },
    tooltip: {
        trigger: 'axis',
        axisPointer: {
            type: 'line',
            lineStyle: {
                color: '#7171C6'
            }
        }
    },
    legend: {
        data: [ '宿舍人数'],
        left: 'right'
    },
    grid: {
        top: 50, // 等价于 y: '16%'
        left: '4%',
        right: '6%',
        bottom: '4%',
        containLabel: true
    },
    xAxis: {
        type: 'category',

        data: []
    },
    yAxis: {
        type: 'value',
        axisLabel: {
            show: true,
            color: 'white',
            fontSize: 12,
            formatter: function(value) {
                return value;
            }
        },
        axisLine: {
            show: true
        },
        splitLine: {
            show: true,
            lineStyle: {
                color: '#172738',
                width: 1,
                type: 'solid'
            }
        }
    },
    series: [{
        name: '宿舍人数',
        data: [],
        type: 'line',
        smooth: true
        }
    ]

};
ec_left1.setOption(option_left1);